package com.ljw;

import java.awt.Graphics2D;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Image;
import java.awt.image.BufferStrategy;

import javax.swing.ImageIcon;
import javax.swing.JFrame;

public class Main {
	public static void main(String[] args){
		GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment();
		GraphicsDevice gd = e.getDefaultScreenDevice(); 

		JFrame f = new JFrame();
		f.setSize(800, 600);
		f.setVisible(true);
	
		f.createBufferStrategy(2);
		BufferStrategy bufferStrategy = f.getBufferStrategy();
		Graphics2D graphics2D = (Graphics2D)bufferStrategy.getDrawGraphics();
		
		draw(graphics2D);
	}

	private static void draw(Graphics2D graphics2d) {
		Image image = new ImageIcon("D:\\Developer\\workspace\\JavaGame\\img\\hahaha.jpg").getImage();
		
		
	}
}